import 'package:flutter/material.dart';

class DefaultTabCtrl extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 3,
      child: Scaffold(
        backgroundColor: Color(0xFFFAFAFA),
        appBar: AppBar(
          leading: IconButton(
            icon: Icon(Icons.crop_free),
            tooltip: 'Navigation',
            onPressed: () => {

            },
          ),
          title: Text('DefaultTabCtrl'),
          actions: <Widget>[
            IconButton(
              icon: Icon(Icons.search),
              tooltip: 'Search',
              onPressed: () => {

              },
            ),
          ],
          elevation: 0.0,
          bottom: TabBar(
            labelColor: Color(0xFF333333),
            unselectedLabelColor: Color(0xFF999999),
            
            indicatorSize: TabBarIndicatorSize.label,
            indicatorColor: Color(0xFFFFD100),
            indicatorWeight: 1.0,
            tabs: <Widget>[
              Tab(icon: Icon(Icons.local_florist)),
              Tab(icon: Icon(Icons.change_history)),
              Tab(icon: Icon(Icons.directions_bike)),
            ],
          ),
        ),
        body: TabBarView(
          children: <Widget>[
            Icon(Icons.local_florist, size: 128.0, color: Colors.black12,),
            Icon(Icons.change_history, size: 128.0, color: Colors.black12,),
            Icon(Icons.directions_bike, size: 128.0, color: Colors.black12,),
          ],
        ),
      ),
    );
  }
}